<!DOCTYPE html> <title>Basic Visual Test</title>

<style>
  @import '/reset.css';
  #reference {
    background-color: red;
    width: 100px;
    height: 50px;
    position: absolute;
    left: 104.5px;
    box-shadow: inset 0 0 0 2px #000;
  }

  #popper {
    background-color: rebeccapurple;
    width: 300px;
    height: 400px;
    width: 312px;
    box-shadow: inset 0 0 0 2px #000;
  }
</style>

<div id="reference">Reference Box</div>
<div id="popper">Popper Box</div>

<script type="module">
  import { createPopper } from './dist/popper.js';
  const reference = document.querySelector('#reference');
  const popper = document.querySelector('#popper');

  window.instance = createPopper(reference, popper, {
    placement: 'bottom-start',
    modifiers: [
      {
        name: 'preventOverflow',
        options: {
          altAxis: true,
        },
      },
    ],
  });
</script>
